package com.kc.web.controller.business;

import com.kc.business.domain.BizTourguideEnterForm;
import com.kc.business.domain.BizTravelAgencyEnterForm;
import com.kc.business.mapper.BizTravelAgencyEnterMapper;
import com.kc.business.service.IBizTravelAgencyEnterService;
import com.kc.common.core.controller.BaseController;
import com.kc.common.core.page.TableDataInfo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName BizTravelAgencyEnterController
 * @Description 旅行社入住controller
 * @Author wangdongliang
 * @Date 2021/5/26 13:25
 */
@RestController
@RequestMapping("/business/travelAgencyEnter")
public class BizTravelAgencyEnterController extends BaseController {
    @Resource
    private IBizTravelAgencyEnterService bizTravelAgencyEnterService;

    @PreAuthorize("@ss.hasPermi('business:travelAgencyEnter:list')")
    @GetMapping("/list")
    public TableDataInfo list(BizTravelAgencyEnterForm bizTravelAgencyEnterForm) {
        startPage();
        List<BizTravelAgencyEnterForm> bizTravelAgencyEnterForms = bizTravelAgencyEnterService.getList(bizTravelAgencyEnterForm);
        return getDataTable(bizTravelAgencyEnterForms);
    }
}
